@extends('layouts.app')
@section('content')
    <div class="layui-form" lay-filter="layuiadmin-form-tags" id="layuiadmin-app-form-tags" style="padding-top: 30px; text-align: center;">
        <div class="layui-form-item">
            <label class="layui-form-label">分类名</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="{{ $tag->name ?? old('name') }}" lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input type="text" name="sort" value="{{ $tag->sort ?? 0 }}" lay-verify="required|number" placeholder="请输入数字" class="layui-input" >
            </div>
        </div>
    </div>
@endsection
@section('js')
  <script>
  layui.use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form ;
  })
  </script>
@endsection
